package com.violet.lease.mybatisplus;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan("com.violet.lease.admin.mapper")
public class MybatisPlusConfiguration {
    @Bean
    public PaginationInnerInterceptor mybatisPlusInterceptor(){
        PaginationInnerInterceptor paginationInterceptor = new PaginationInnerInterceptor(DbType.MYSQL);
        return paginationInterceptor;
    }
}
